USE [TimkenDB]
GO

/****** Object:  Table [dbo].[Advertisement]    Script Date: 11/02/2012 10:38:37 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Advertisement](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[pp] [varchar](50) NULL,
	[ImagePath] [varchar](400) NULL,
	[Url] [varchar](200) NULL,
	[Oby] [int] NULL,
	[Imgtype] [int] NULL,
	[isShow] [int] NULL,
	[CreDate] [datetime] NULL,
 CONSTRAINT [PK_Advertisement] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[Advertisement] ADD  CONSTRAINT [DF_Advertisement_isShow]  DEFAULT ((0)) FOR [isShow]
GO

ALTER TABLE [dbo].[Advertisement] ADD  CONSTRAINT [DF_Advertisement_CreDate]  DEFAULT (getdate()) FOR [CreDate]
GO


